home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
rcp.z
/
rcp
Wrap
Text File
|
1998-10-20
|
4KB
|
133 lines
rrrrccccpppp((((1111CCCC)))) rrrrccccpppp((((1111CCCC))))
NNNNAAAAMMMMEEEE
rcp - remote file copy
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
rrrrccccpppp [ ----pppp ] [ ----vvvv ] file1 file2
rrrrccccpppp [ ----pppp ] [ ----rrrr ] [ ----vvvv ] file ... directory
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_r_c_p copies files between machines. Each _f_i_l_e or _d_i_r_e_c_t_o_r_y argument has
one of these forms:
+o A local filename, _p_a_t_h, containing no :::: characters, or a \\\\ before any
::::'s.
+o A remote filename of the form _r_e_m_h_o_s_t::::_p_a_t_h.
+o A remote filename of the the form _r_e_m_u_s_e_r@@@@_r_e_m_h_o_s_t::::_p_a_t_h, which uses the
user name _r_e_m_u_s_e_r rather than the current user name on the remote
host.
If _p_a_t_h is not a full pathname, it is interpreted relative to your login
directory on _r_e_m_h_o_s_t. A _p_a_t_h on a remote host can be quoted (using \\\\, """",
or '''') so that the metacharacters are interpreted remotely.
By default, the mode and owner of _f_i_l_e_2 are preserved if it already
existed; otherwise the mode of the source file modified by the _u_m_a_s_k(2)
on the destination host is used.
The options to _r_c_p are:
----pppp Causes _r_c_p to attempt to preserve (duplicate) in its copies the
modification times and modes of the source files, ignoring the
_u_m_a_s_k.
----rrrr If any of the source files are directories, _r_c_p copies each subtree
rooted at that name; in this case the destination must be a
directory.
----vvvv Causes the filename to be printed as it is copied to or from a
remote host.
_r_c_p does not prompt for passwords; your current local user name must
exist on _r_e_m_h_o_s_t and allow remote command execution via _r_s_h(1C).
_r_c_p handles third party copies, where neither source nor target files are
on the current machine. Hostname-to-address translation of the target
host is performed on the source host.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
cp(1), ftp(1C), rlogin(1C), rsh(1C), hosts(4), rhosts(4).
PPPPaaaaggggeeee 1111
rrrrccccpppp((((1111CCCC)))) rrrrccccpppp((((1111CCCC))))
BBBBUUUUGGGGSSSS
_r_c_p doesn't detect all cases where the target of a copy might be a file
in cases where only a directory should be legal.
The exit status is not correct in all error cases when both source and
destination are remote; this is due to a limitation of the protocol.
If you use _c_s_h(1), _r_c_p does not work if your ._c_s_h_r_c file on the remote
host unconditionally executes interactive or output-generating commands.
The message
protocol screwup
is displayed when this happens. Put the offending commands inside the
following conditional block:
if ($?prompt) then
endif
so they won't interfere with _r_c_p, _r_s_h, and other non-interactive,
_r_c_m_d(3N)-based programs.
_r_c_p cannot handle filenames that have embedded newline characters. A
newline character is a _r_c_p protocol delimiter. The error message when
this happens is:
protocol screwup: unexpected <newline>
PPPPaaaaggggeeee 2222